/**
 * 
 */
package com.googlecode.rotools.rodb;

import java.io.Closeable;
import java.sql.Connection;
import java.sql.SQLException;

/**
 * 
 */
public interface RODB extends Closeable{
	public void insertItem(Item item) throws SQLException;
	public void updateItem(String id, Item item) throws SQLException;
	public void updateItem(Item item, boolean create) throws SQLException;
	public Item getItem(String id) throws SQLException;
	public Items getItems() throws SQLException;
	public void removeAllItems() throws SQLException;
	public int getItemCount() throws SQLException;
	public Connection getConnection();
}
